package com.run.cat.common.exception;

import java.util.Map;


/**
 * @author Rk
 * Service层公用的Exception.
 *
 * 继承自RuntimeException, 从由Spring管理事务的函数中抛出时会触发事务回滚.
 *
 * @frogsing van
 */
public class ServiceException extends RuntimeException {

	private static final long serialVersionUID = 3583566093089790852L;
	private String msg;

	public String getMsg() {
		return msg;
	}


	private Map<String,String> msgmap=null;

	public ServiceException() {
		super();
	}

	public ServiceException(String message) {
		super(message);
	}
	public ServiceException(Map<String,String> map,String message) {
		super(message);
		msgmap = map;
	}
	public ServiceException(boolean flag,String message) {
		super(message);
	}
	public ServiceException(Throwable cause) {
		super(cause);
	}

	public ServiceException(String message, Throwable cause) {
		super(message, cause);
	}

	public Map<String,String> getMsgmap() {
		return msgmap;
	}

}
